package org.qqcui.designpattern.patterns.strategy;

/**
 * 北京鸭，不会飞，呱呱叫
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022/5/7 15:21
 **/
public class PekingDuck extends Duck {

    public PekingDuck() {
        this.flyBehavior = new NoFlyBehavior();
        this.quackBehavior = new GuaguaQuackBehavior();
    }

    @Override
    public void display() {
        System.out.println("============北京鸭================");
        fly();
        quack();
    }
}
